import os
from pathlib import Path

if __name__=='__main__':
    base = 'logs'
    
    base_path = Path(base)

    best = 999999999
    best_path = None

    for child in base_path.iterdir():
        with child.open('r') as f:
            score = int(f.read().splitlines()[-13])
            if score < best:
                best = score
                best_path = child

    print(best_path)